package com.generator.aboutUser.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 
 * </p>
 *
 * @author 88168
 * @since 2022-09-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Component
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编号,主键
     */
    @TableId(value = "U_ID", type = IdType.AUTO)
    private Integer uId;

    /**
     * 用户名称
     */
    @TableField("UNAME")
    private String uname;

    /**
     * 用户密码
     */
    @TableField("UPASSWORD")
    private String upassword;

    /**
     * 用户电话号码
     */
    @TableField("UTELEPHONE")
    private String utelephone;

    /**
     * 职位id,外键 1 经理 2 员工
     */
    @TableField("JOB_ID")
    private Integer jobId;

    /**
     * 性别 1男2女
     */
    @TableField("SEX")
    private Integer sex;

    /**
     * 状态id,1:在职2:离职
     */
    @TableField("STATUS_ID")
    private Integer statusId;

    /**
     * 入职时间
     */
    @TableField("HIREDATE")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date hiredate;

    /**
     * 离职时间
     */
    @TableField("LEAVEDATE")
    private Date leavedate;

    /**
     * 出生日期
     */
    @TableField("BIRTHDAY")
    private Date birthday;

    @TableField("DEPT_ID")
    private Integer deptId;


}
